package DMSXL._2023Before.DoubleLnode;

/*public class removeElement_ {
    public static void main(String[] args) {
        Solution solution = new Solution();
        int[] nums = {0,1,2,2,3,0,4,2};
        System.out.println(solution.removeElement(nums,2));
    }
}
class Solution {
    public int removeElement(int[] nums, int val) {
        int slow = 0;

        for (int fast = 0; fast < nums.length; fast++) {
            if(nums[fast] != val){
                nums[slow] = nums[fast];
                slow++;
            }
            else
                continue;
        }
        return slow;
    }
}*/